﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using Common;

namespace CashFlow.ShopManage.Def
{
    public enum EAddAdminResult : int
    {
        Success = 0,

        [MyEnumAttr("用户名已经存在！")]
        ExistUserName = 1,

        [MyEnumAttr("")]
        Other = 999
    }

    public enum EUserType
    {
        OrdinaryUser = 0,

        ShopManager = 1
    }

    public enum EAppointmentResult
    {
        Success = 0,

        [MyEnumAttrAttribute("预约时间错误！")]
        InvalidTime = 1,

        [MyEnumAttrAttribute("请不要重复预约！")]
        Repeat = 2,

        [MyEnumAttrAttribute("预约类型错误！")]
        InvalidType = 3,

        [MyEnumAttrAttribute("未知错误！")]
        Fail = 999
    }

    public enum EUpdateUserResult : int
    {
        Success = 0,

        [MyEnumAttr("手机号码已经存在！")]
        ExistPhone = 1,

        Other = 999
    }

    public enum EOrderState : int
    {
        [MyEnumAttr("未付款")]
        NotPayment = 0,

        [MyEnumAttr("已付款")]
        Paied = 1,

        [MyEnumAttr("已收款")]
        Recv = 2,

        [MyEnumAttr("已提货")]
        Extract = 3
    }

    public enum ECreateOrderResult : int
    {
        Success = 0,

        [MyEnumAttr("买家订单重复！")]
        RepeatBuyer = 1,

        Other = 999
    }

    public enum EUpdateOrderResult : int
    {
        Success = 0,

        [MyEnumAttr("买家订单重复！")]
        RepeatBuyer = 1,

        Other = 999
    }
}